#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include "link_list.h"


int main() {

	LinkList l;
	int e = 0;
	CreateList_R(&l, 6);
	//CreateList_H(&l,6);
	//InitList(&l);
	//AddList(&l, 3);
	//AddList(&l, 4);
	//AddList(&l, 5);
	//AddList(&l, 6);
	//AddList(&l, 7);
	//DestroyList(&l);
	//ClearList(&l);
	//int a = ListLength(l);
	//GetElem(l, 8, &e);
	//int d = LocateElem(l, 5);
	//ListInsert(&l, 2, 9);
	//int d = ListDelete(&l, 2);

	//printf("%d",d);
	//printf("%d", a);
	LinkList* p = &l;
	(*p) = (*p)->next;
	while (*p)
	{
		printf("%d\n", ((*p)->data));
		(*p) = (*p)->next;
	}

	return 0;
}